package design.patterns.creational.builder;

/**
 * 建造者模式
 */
public class Test {

    public static void main(String[] args) {
        Computer computer = new Computer.Builder()
                .buildCpu("酷睿I5")
                .buildHardDisk("西数")
                .buildMainBoard("联想")
                .buildMermory("金士顿DDR4")
                .build();

        System.out.println(computer);
    }
}
